package com.crazy.jiakoulachang.service;

import com.crazy.jiakoulachang.exception.MallException;
import com.crazy.jiakoulachang.pojo.Role;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * @author: 卢辉宇
 * @date: 2023/3/15 21:42
 * @description:
 */
public interface RoleService {
    Role login(String userAccount, String password, HttpServletRequest request) throws MallException;

    long register(String userAccount, String password, String checkPassword) throws MallException;

    Role getLoginRole(HttpServletRequest request) throws MallException, IOException;
}
